﻿using Furion.Schedule;
using KseCms.Application.Services;
using KseCms.Core;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KseCms.Application
{
    public class PaymentJob:IJob
    {
        private readonly ILogger<PaymentJob> _logger;

        public PaymentJob(ILogger<PaymentJob> logger)
        {
            _logger = logger;
        }

        public Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken)
        {
            _logger.LogInformation($"Job::get shipping status from shipping service API");

            //TO-DO if customer received make order status => OrderStatus.Completed 

            return Task.CompletedTask;
        }
    }
}
